﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="Draft.aspx.cs" Inherits="Microsoft.JCI.Portal.Branch.Draft" Title="Untitled Page" StylesheetTheme="GlobleTheme" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">

    <script src="../Content/global.js" type="text/javascript"></script>

    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />

    <script src="../Content/Grid/map_grid.js" type="text/javascript"></script>

    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <div class="Container">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0"
                            width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60">
                                <tr>
                                    <td style="color: #ffffff">
                                        <b>快速查询</b>
                                    </td>
                                    <td class="icMenu mnuRight" nowrap>
                                    </td>
                                </tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                        <table id="__appFind_tbQuery2" style="table-layout: fixed; font-size: 9pt" cellspacing="2"
                            cellpadding="2" width="100%">
                            <colgroup>
                                <col width="80">
                                <col>
                                <col width="80">
                                <col>
                            </colgroup>
                            <tr>
                                <td width="25%">
                                    &nbsp;&nbsp;工单编号
                                </td>
                                <td width="25%">
                                    <asp:TextBox ID="txtFormCode" runat="server" CssClass="input"></asp:TextBox>
                                </td>
                                <td width="20%">
                                    &nbsp;&nbsp;创建时间
                                </td>
                                <td>
                                    <rad:RadDatePicker runat="server" ID="dtFrom">
                                    </rad:RadDatePicker>
                                    ~
                                    <rad:RadDatePicker runat="server" ID="dtTo">
                                    </rad:RadDatePicker>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;&nbsp;客户名称
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCustomerName" runat="server" CssClass="input"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;&nbsp;客户手机
                                </td>
                                <td>
                                    <asp:TextBox ID="txtMobile" runat="server" CssClass="input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" align="right">
                                    <asp:Button ID="btnSearch" runat="server" Text="查找" CssClass="button" OnClick="btnSearch_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="Container">
        <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>单据列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
        <rad:RadGrid runat="server" ID="radGridCustomerList" AutoGenerateColumns="False"
            AllowSorting="false" OnNeedDataSource="radGridCustomerList_NeedDataSource">
            <ClientSettings EnableClientKeyValues="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView DataKeyNames="CustomerId">
                <Columns>
                    <rad:GridBoundColumn HeaderText="单据编号" DataField="FormCode">
                    </rad:GridBoundColumn>
                    <rad:GridBoundColumn HeaderText="客户名称" DataField="Name">
                    </rad:GridBoundColumn>
  <rad:GridTemplateColumn HeaderText="性别">
                        <ItemTemplate>
                            <asp:Literal ID="Literal1" runat="server" Text='<%#Eval("Gender").ToString()=="False" ? "女":"男" %>'></asp:Literal>
                        </ItemTemplate>
                    </rad:GridTemplateColumn>
                    <rad:GridBoundColumn HeaderText="手机" DataField="Mobile">
                    </rad:GridBoundColumn>
                    <rad:GridBoundColumn HeaderText="省份" DataField="ProvinceName">
                    </rad:GridBoundColumn>
                    <rad:GridBoundColumn HeaderText="城市" DataField="CityName">
                    </rad:GridBoundColumn>
                    <rad:GridBoundColumn HeaderText="创建时间" DataField="CreateOn">
                    </rad:GridBoundColumn>
                    <rad:GridBoundColumn HeaderText="创建人" DataField="CreateBy">
                    </rad:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </rad:RadGrid>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" FirstPageText="首页"
            LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" ShowCustomInfoSection="Left"
            Width="100%" LayoutType="Table" SubmitButtonClass="but" SubmitButtonText="转到">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
